import request from '@/utils/request'

export const getCourses = (params) => {
  return request('/my/courses', 'get', params)
}

// 初始化词汇表用户字段 用来记录成绩
export const initScore = (query, data) => {
  return request('/my/scoreInit', 'post', query, data)
}

// 更新成绩模块
export const updateScore = (query, score) => {
  return request('/my/scoring', 'post', query, score)
}

// 获得词表每课的得分情况
export const getStart = (params) => {
  return request('/my/getStar', 'get', params)
}

// 刷新数据库数据
export const refreshDb = (params) => {
  return request('/my/refreshdb', 'get', params)
}
